package com.eistert.java.algorithm.kruskal;

/**
 * 创建一个类 EData ，它的对象实例就表示一条边
 *
 * @Author: ai
 * @create: 2023-04-28 10:20
 */
public class EData {
    // 边的一个点char
    char start;

    // 边的另外一个点
    char end;

    // 边的权值
    int weight;

    // 构造器
    public EData(char start, char end, int weight) {
        this.start = start;
        this.end = end;
        this.weight = weight;
    }

    // 重写toString
    public String toString() {
        return "EData [<" + this.start + ", " + this.end + ">= " + this.weight + "]";
    }
}
